//
//  main.m
//  OCTerminalTest
//
//  Created by 赵梁 on 2019/1/18.
//  Copyright © 2019 layzhao. All rights reserved.
//
//#import <XCTest/XCTest.h>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        // insert code here...
        NSLog(@"Hello, World!");
        
//        NSSet 的使用
        NSSet *set = [NSSet setWithArray:@[@"1002", @"1003", @"1001", @"1001"]];
        NSSet *set2 = [NSSet setWithArray:@[@"1002", @"1002", @"1001", @"1001"]];
        NSSet *set3 = [NSSet setWithArray:@[@"1002", @"1002", @"1001", @"1001"]];
        NSSet *set4 = [NSSet setWithArray:@[@"1001", @"1001", @"1002", @"1002"]];
        NSLog(@"%@", set);
        NSLog(@"%@", set2);
        NSLog(@"%@", set3);
        NSLog(@"%@", set4);
        NSLog(@"%d", [set isEqual:set2]);
        NSLog(@"%d", [set isEqual:set3]);
        NSLog(@"%d", [set3 isEqual:set2]);
        NSLog(@"%d", [set4 isEqual:set2]);
    }
    return 0;
}
